package com.qf.agro.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * ProjectName: smart-agriculture-parent
 * ClassName: SysRole
 * Author: chenyaosen
 * Date: 2023/7/3 11:50
 * Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("sa_sys_role")
public class SysRole implements Serializable {

    @TableId
    private Long id;

    private String name;

    private String remark;

    private Long orderNo;

    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long companyId;

    @TableField(fill = FieldFill.INSERT)
    private String companyName;

    //@TableField(exist = false)
    //private List<SysModule> moduleList;
}
